package com.nanhai.buddhist.college.module.collegebase.service.teacherteachers;


import com.nanhai.buddhist.college.framework.common.pojo.PageResult;
import com.nanhai.buddhist.college.module.collegebase.api.student.vo.UpdatePasswordVO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.teacherteachers.vo.TeacherTeachersCreateReqVO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.teacherteachers.vo.TeacherTeachersExportReqVO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.teacherteachers.vo.TeacherTeachersPageReqVO;
import com.nanhai.buddhist.college.module.collegebase.controller.admin.teacherteachers.vo.TeacherTeachersUpdateReqVO;
import com.nanhai.buddhist.college.module.collegebase.dal.dataobject.teacherteachers.TeacherTeachersDO;

import javax.validation.Valid;
import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * 教师管理 Service 接口
 *
 * @author AKai
 */
public interface TeacherTeachersService {

    /**
     * 创建教师管理
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    String createTeacherTeachers(@Valid TeacherTeachersCreateReqVO createReqVO);

    /**
     * 更新教师管理
     *
     * @param updateReqVO 更新信息
     */
    void updateTeacherTeachers(@Valid TeacherTeachersUpdateReqVO updateReqVO);

    /**
     * 删除教师管理
     *
     * @param id 编号
     */
    void deleteTeacherTeachers(String id);

    /**
     * 获得教师管理
     *
     * @param id 编号
     * @return 教师管理
     */
    TeacherTeachersDO getTeacherTeachers(String id);

    /**
     * 获得教师管理列表
     *
     * @param ids 编号
     * @return 教师管理列表
     */
    List<TeacherTeachersDO> getTeacherTeachersList(Collection<String> ids);

    /**
     * 获得教师管理分页
     *
     * @param pageReqVO 分页查询
     * @return 教师管理分页
     */
    PageResult<TeacherTeachersDO> getTeacherTeachersPage(TeacherTeachersPageReqVO pageReqVO);

    /**
     * 获得教师管理列表, 用于 Excel 导出
     *
     * @param exportReqVO 查询条件
     * @return 教师管理列表
     */
    List<TeacherTeachersDO> getTeacherTeachersList(TeacherTeachersExportReqVO exportReqVO);


    /**
     * 根据用户名获取 教师信息
     * @param username
     * @return
     */
    TeacherTeachersDO getUserByUsername(String username);

    /**
     *
     * @param id
     * @return
     */
    List<TeacherTeachersDO>  getTeacherListByClassesId(String id);


    /**
     *
     * @param findStr
     * @return
     */
    List<TeacherTeachersDO> getTeacherTeachersDOListByStr(String findStr);

    List<TeacherTeachersDO> getByCollegeId(String collegeId);

    void updatedStudentPassword(UpdatePasswordVO req);

    List<TeacherTeachersDO> getAllTeacherList();

}
